$ep-header-height: 80px;
@import "../../../styles/index.scss";
.main {
  height: 100%;
  width: 100%;
  background-color: var(--ep-bg-color-page);
  div {
    box-sizing: border-box;
    ::-webkit-scrollbar-track {
      background: var(--ep-bg-color-page);
      border-radius: 0;
    }

    ::-webkit-scrollbar {
      -webkit-appearance: none;
      width: 6px;
      height: 6px;
    }

    ::-webkit-scrollbar-thumb {
      cursor: pointer;
      border-radius: 5px;
      background: var(--ep-text-color-placeholder);
      transition: color 0.2s ease;
    }
  }
}
.ep-main {
  --ep-main-padding: 15px;
  padding-right: 0;
  border-right: 1px solid var(--ep-border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.flex_box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.font_12 {
  font-size: 12px;
  color: var(--ep-text-color-secondary);
}
.font_w {
  font-weight: bold;
}
.mal_10 {
  margin-left: 10px;
}
// .flex_box_l_s{
//   display: flex;
// }
.ep-container {
  height: 100%;
}
.center_flex {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-header {
  border-bottom: 1px solid var(--ep-border-color);
  height: $ep-header-height;
  position: relative;
  &.first_header {
    &::after {
      content: "";
      width: 1px;
      height: 50px;
      background-color: var(--ep-border-color);
      position: absolute;
      top: 50%;
      margin-top: -25px;
      right: 0;
    }
    .type_day {
      margin-left: auto;
      margin-right: 20px;
      font-size: 16px;
      // color: $ep-color-primary;
      cursor: pointer;
    }
    // border-right: 1px solid var(--ep-border-color);
  }
}
.group_list {
  height: calc(100vh - $ep-header-height);
  $ep-state_list-height: 90px;
  overflow: hidden;
  .state_list {
    border-bottom: 1px solid var(--ep-border-color);
    height: $ep-state_list-height;
    border-right: 1px solid var(--ep-border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
  }
  .user_list,
  .group_chats {
    height: calc(100vh - $ep-header-height - $ep-state_list-height);
    border-right: 1px solid var(--ep-border-color);
    overflow: auto;
    overflow-x: hidden;
    padding: 4px;
    .group_box {
      padding: 4px;
      width: 97%;
      // margin-right: 20px;
      box-sizing: border-box;
      height: 50px;
      margin-bottom: 10px;
      cursor: pointer;
      transition: all 0.3s;

      &:last-child {
        margin-bottom: 0;
      }
      .headshot {
        width: 40px;
        height: 40px;
        margin-right: 10px;
      }
      .group_info {
        flex: 1;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-around;
        cursor: pointer;

        .group_name {
          font-size: 14px;
          // font-weight: bold;
          width: 100%;
          overflow: hidden; //超出的文本隐藏
          text-overflow: ellipsis; //溢出用省略号显示
          white-space: nowrap; //溢出不换行
          text-align: left;
        }
        .not_answer_count {
          text-align: left;
          // font-size: 12px;
          // color: var(--ep-text-color-regular);
          // height: 15px;
        }
      }
    }
  }
}
//鼠标交互
.box_border_hover {
  position: relative;
  cursor: pointer;

  &::before,
  &::after {
    transition: all 0.3s;
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    // background-color: var(--ep-border-color);
    // animation: div1Ani 1500ms infinite linear;
  }
  &::before {
    top: 0px;
    left: 0px;
    border-radius: 4px;
  }

  &::after {
    right: 0px;
    bottom: 0px;
    border-radius: 4px;
  }
  &:hover {
    &::before,
    &::after {
      width: calc(100% - 1px);
      height: calc(100% - 1px);
    }
    &::before {
      border-top: 1px solid var(--ep-color-primary);
      border-left: 1px solid var(--ep-color-primary);
    }
    &::after {
      border-bottom: 1px solid var(--ep-color-primary);
      border-right: 1px solid var(--ep-color-primary);
    }
  }
}
// 选中的群
.active_group {
  background-color: var(--ep-color-primary-light-9);
  &::before,
  &::after {
    width: calc(100% - 1px) !important;
    height: calc(100% - 1px) !important;
  }
  &::before {
    border-top: 1px solid var(--ep-color-primary) !important;
    border-left: 1px solid var(--ep-color-primary) !important;
  }
  &::after {
    border-bottom: 1px solid var(--ep-color-primary) !important;
    border-right: 1px solid var(--ep-color-primary) !important;
  }
}
// .top_row {
//   width: 100%;
//   height: 50px;
// }
.custom-context-menu {
  position: fixed;
  // background-color: #000;
  // border: 1px solid #ccc;
  background-color: var(--ep-bg-color);
  // padding: 5px;
  z-index: 1000;
  top: 0;
  left: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  // box-shadow: ;
}
.top_name_group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 10px;
  padding-top: 10px;
  .group_name {
    font-weight: bold;
    font-size: 18px;
  }
  .group_notAnswerCount {
    font-size: 13px;
    color: var(--ep-text-color-regular);
  }
}
.send_user_name {
  color: var(--ep-color-primary);
}
.group_main_info {
  padding-left: 24px;
  flex-direction: column !important;
  padding-right: 12px;
  padding-bottom: 20px;
  flex: 1;
  .list_col {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 0;
    color: var(--ep-text-color-regular);
    // margin-bottom: 5px;
  }
  .interior_item {
    flex: 1;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;

    // margin-top: 20px;
    .title {
      margin-bottom: 16px;
      font-size: 14px;
      text-align: left;
      margin-top: 10px;
      font-weight: bold;
    }
    .i_list {
      width: 100%;
      // margin-top: 10px;
      flex: 1;
      // background-color: #fff;
      overflow-x: hidden;
      overflow-y: auto;
      img {
        width: 14px;
        height: 14px;
        margin-right: 6px;
      }
      .user_item {
        text-align: start;
        font-size: 13px;
        margin-top: 10px;
        color: var(--ep-text-color-regular);
      }
    }
  }
}
.customer_name {
  margin: 0 5px;
}
.end_aside {
  overflow: visible;
}
.end_header {
  position: relative;
  overflow: visible;
  // overflow-x: auto !important;
  .statistics_all {
    position: absolute;
    top: 54px;
    right: 20px;
    font-size: 13px;
    width: 400px;
    overflow: visible;
    z-index: 99999;
    span {
      margin: 0 8px;
      color: var(--ep-text-color-regular);
    }
  }
}
.max_user_text {
  width: 195px;
  overflow: hidden; //超出的文本隐藏
  text-overflow: ellipsis; //溢出用省略号显示
  white-space: nowrap; //溢出不换行
  display: inline-block;
}
